package com.ss.user.dao;

import java.util.List;

import com.ss.user.pojo.Role;
import com.ss.user.pojo.RoleAuthority;
/**
 * 角色dao借口
 * @author zhuchao
 *
 */
public interface RoleDao {
	/**
	 * 新增角色
	 * @param role
	 * @author zhuchao
	 */
	public void addRole(Role role);
	/**
	 * 更新角色
	 * @param role
	 * @author zhuchao
	 */
	public void updateRole(Role role);
	/**
	 * 查询角色
	 * @param role
	 * @return
	 * @author zhuchao
	 */
	public Role queryRole(Role role);
	/**
	 * 查询角色根据ID
	 * @param id
	 * @return
	 * @author zhuchao
	 */
	public Role queryRoleByID(String id);
	/**
	 * 查询角色功能关联
	 * @param roleAuthority
	 * @return
	 * @author zhuchao
	 */
	public List<RoleAuthority> queryRoleAuthority(RoleAuthority roleAuthority);
	/**
	 * 新增角色功能关联
	 * @param roleAuthority
	 * @author zhuchao
	 */
	public void addRoleAuthority(RoleAuthority roleAuthority);
	/**
	 * 删除角色功能关联
	 * @param roleAuthority
	 * @author zhuchao
	 */
	public void deleteRoleAuthority(RoleAuthority roleAuthority);
}
